import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class PopupChangesSaved extends JFrame {
	public PopupChangesSaved() {
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setLayout(new XYLayout());

		setLocation(0, 0);
		setSize(dim);
		setUndecorated(true);

		setBackground(new Color(0, 255, 0, 0));

		setContentPane(new ContentPane());
		getContentPane().setBackground(Color.BLACK);

		JPanel panel = new JPanel();
		panel.setPreferredSize(dim);
		panel.setOpaque(false);
		panel.setLayout(new XYLayout());
		add(panel);

		JPanel backgroundPanel = new PopupChangesSavedScreen(this);
		backgroundPanel.setLocation(Global.displayX / 2 - 150,
				Global.displayY / 2 - 75);
		panel.add(backgroundPanel);
		backgroundPanel.setLayout(new XYLayout());

		setVisible(true);
	}

}
